package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysInventorychangeMapper;
import com.ruoyi.system.domain.SysInventorychange;
import com.ruoyi.system.service.ISysInventorychangeService;

/**
 * 库存变更记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-05
 */
@Service
public class SysInventorychangeServiceImpl implements ISysInventorychangeService 
{
    @Autowired
    private SysInventorychangeMapper sysInventorychangeMapper;

    /**
     * 查询库存变更记录
     * 
     * @param id 库存变更记录主键
     * @return 库存变更记录
     */
    @Override
    public SysInventorychange selectSysInventorychangeById(Long id)
    {
        return sysInventorychangeMapper.selectSysInventorychangeById(id);
    }

    /**
     * 查询库存变更记录列表
     * 
     * @param sysInventorychange 库存变更记录
     * @return 库存变更记录
     */
    @Override
    public List<SysInventorychange> selectSysInventorychangeList(SysInventorychange sysInventorychange)
    {
        return sysInventorychangeMapper.selectSysInventorychangeList(sysInventorychange);
    }

    /**
     * 新增库存变更记录
     * 
     * @param sysInventorychange 库存变更记录
     * @return 结果
     */
    @Override
    public int insertSysInventorychange(SysInventorychange sysInventorychange)
    {
        return sysInventorychangeMapper.insertSysInventorychange(sysInventorychange);
    }

    /**
     * 修改库存变更记录
     * 
     * @param sysInventorychange 库存变更记录
     * @return 结果
     */
    @Override
    public int updateSysInventorychange(SysInventorychange sysInventorychange)
    {
        return sysInventorychangeMapper.updateSysInventorychange(sysInventorychange);
    }

    /**
     * 批量删除库存变更记录
     * 
     * @param ids 需要删除的库存变更记录主键
     * @return 结果
     */
    @Override
    public int deleteSysInventorychangeByIds(Long[] ids)
    {
        return sysInventorychangeMapper.deleteSysInventorychangeByIds(ids);
    }

    /**
     * 删除库存变更记录信息
     * 
     * @param id 库存变更记录主键
     * @return 结果
     */
    @Override
    public int deleteSysInventorychangeById(Long id)
    {
        return sysInventorychangeMapper.deleteSysInventorychangeById(id);
    }
}
